import {getSearchPageRequest} from '@/api/index'

const state = {
    searchList : {}
};

const mutations ={
    setSearchList (state , value) {
        state.searchList = value
    }
};

const actions ={
    async getSetSearchList({commit},searchParams){
        const re = await getSearchPageRequest(searchParams)
        commit("setSearchList",re)
    }
};

const getters = {
    trademarkList(state){
        return state.searchList.trademarkList
    },
    attrsList(state){
        return state.searchList.attrsList
    },
    goodsList(state){
        return state.searchList.goodsList
    }
};

export default {
    namespaced: true,
    state,
    mutations,
    actions,
    getters,
  };